# 笨办法学 Python 3
# 练习21：函数可以返回一些东西
# data：2023.1.2

def add(a,b):
    print(f"加法 {a} + {b}")
    return a + b

def subtract(a,b):
    print(f"减法 {a} - {b}")
    return a - b

def multiply(a, b):
    print(f"乘法 {a} * {b}")
    return a * b

def divide(a, b):
    print(f"除法 {a} / {b}")
    return a / b

print("让我们用合适的函数做一些数学计算！")

age = add(30, 5)
height = subtract(78, 4)
weight = multiply(90,2)
iq = divide(100,2)

print(f"年龄：{age},身高：{height},体重：{weight},IQ:{iq}")

# A puzzle for the extra credit, type it in anyway.
print("这是一个披萨。")

what = add(age, subtract(height, multiply(weight, divide(iq,2))))

print("That becomes: ", what, "Can you do it by hang?")